package com.cmpan.networkdisk.service;

import com.cmpan.networkdisk.model.Disk;

import java.util.List;
import java.util.Map;

/**
 * ClassName:DiskService
 * Package:com.cmpan.networkdisk.service
 * Description:
 *
 * @Date:2020/7/7 17:23
 * @com.chuangmei
 */
public interface DiskService {

    //上传文件接口
    Map<String,Object> uploadFile(Disk disk);

    //查询所有条目
    List<Disk> selectAll();
    List<Disk> selectAllPage(int start,int end,int total);

    //通过id删除数据
    Integer deleteById(Long id);

    String selectPathById(Long id);

    List<Disk> deleteByFileName(String[] search);

    List<Disk> searchByTypeID(String typeid);

    int selectPage();

    Disk selectDiskById(Long valueOf);

    int modifyByIdSelective(Disk disk);

    StringBuffer batchDelete(String[] id);
}
